package com.bootdo.repertory.service.impl;

import com.bootdo.repertory.dao.OutstockDao;
import com.bootdo.repertory.domain.OutstockDO;
import com.bootdo.repertory.service.OutstockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class OutstockServiceImpl implements OutstockService {
	@Autowired
	private OutstockDao outstockDao;
	
	@Override
	public OutstockDO get(Integer id){
		return outstockDao.get(id);
	}
	
	@Override
	public List<OutstockDO> list(Map<String, Object> map){
		return outstockDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return outstockDao.count(map);
	}
	
	@Override
	public int save(OutstockDO outstock){
		return outstockDao.save(outstock);
	}
	
	@Override
	public int update(OutstockDO outstock){
		return outstockDao.update(outstock);
	}
	
	@Override
	public int remove(Integer id){
		return outstockDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return outstockDao.batchRemove(ids);
	}
	
}
